<% if (!current_user || !current_user.user_authentications) && Spree::AuthenticationMethod.active_authentication_methods? %>
  <p><big>Do you already have an account on one of these sites? Click the logo to <b>log in</b> with it here:</big></p>
<% end %>

<% Spree::AuthenticationMethod.available_for(@user).each do |method| %>
  <% img = "#{method.provider}_login.png" %>
  <%= link_to(image_tag(img, :alt => "#{method.provider}"), "http://#{Spree::Config[:site_url]}/users/auth/#{method.provider}", :title => t(:sign_in_with, :provider => method.provider)) if method.active %>
<% end %>
